<template>
    <div>
        <el-button type="primary" size="default" @click="gotoAdd()">添加商品</el-button>
        
    </div>
</template>
<script>
export default {
    methods:{
        gotoAdd(){
            this.$router.push({
                name:"add"
            })
        }
    }
}
</script>